/*! \file BufferImpl.inl
 *	\brief 
 *
 *	created:	2010/12/12
 *	created:	12:12:2010   20:37
 *	filename: 	C:\src\tactics-engine\libs\gd\BufferImpl.inl
 *	file path:	C:\src\tactics-engine\libs\gd
 *	file base:	BufferImpl
 *	file ext:	inl
 *	author:		Vitalii Trubchaninov
 *				venngraydog@gmail.com
 */

namespace tt{
namespace gd{

inline
BufferImpl::BufferImpl()
{

}

inline
BufferImpl::~BufferImpl()
{

}

inline
void BufferImpl::lock( DeviceContext* deviceContext )
{
	onLock(deviceContext);
}

inline
void BufferImpl::unlock( DeviceContext* deviceContext )
{
	onUnlock(deviceContext);
}

inline
UInt BufferImpl::size() const
{
	return m_size;
}

inline
void* BufferImpl::data()
{
	return m_data;
}

inline
void BufferImpl::apply( DeviceContext* deviceContext )
{
	onApply(deviceContext);
}

//////////////////////////////////////////////////////////////////////////
inline
void BufferImpl::setSize( UInt size )
{
	m_size = size;
}

inline
void BufferImpl::setData( void* data )
{
	m_data = data;
}

} //namespace gd
} //namespace tt